package com.easygem.front.service.base;



import com.easygem.business.mapper.Mapper;

import java.util.List;

public interface IBaseService<M extends Mapper<T>, T, PK> {

    List<T> selectAll();

    T selectByPrimaryKey(PK pk);

    int selectCount(T record);

    List<T> select(T record);

    T selectOne(T record);

    List<T> selectByIds(String ids);

    int updateByPrimaryKey(T record);

    int updateByPrimaryKeySelective(T record);

    int deleteByIds(String ids);

    int insertList(List<? extends T> list);

    int deleteByPrimaryKey(PK pk);

    int delete(T record);

    int insert(T record);

    int insertSelective(T record);

    boolean existsWithPrimaryKey(PK PK);
}


